<template>
	<view>
		<view class="yxfooter">
		    <view class="h50"></view>
		    <view class="neifoot bottom-line-exclude">
		        <view class="neitop">
		            <view class="weui-flex">
		                <view class="weui-flex__item" data-value="/pages/index/index" data-type="1" @tap="navigation_event">
		                    <view hover-class="none">
		                        <image class="topavatar" :src="scorestore_static_url+'mini/nav-icon-back.png'" />
		                        <text class="title">返回商城</text>
		                    </view>
		                </view>
		                <view class="weui-flex__item" data-value="/pages/fcc/scorestore/index/index" data-type="1" @tap="navigation_event">
		                    <view v-if="propStatus == 1" class="on">
		                        <image class="topavatar" :src="scorestore_static_url+'mini/home-on.png'" />
		                        <text class="title">兑换首页</text>
		                    </view>
		                    <view v-else>
		                        <image class="topavatar" :src="scorestore_static_url+'mini/home.png'" />
		                        <text class="title">兑换首页</text>
		                    </view>
		                </view>
		                <view class="weui-flex__item" data-value="/pages/fcc/scorestore/user-integral-index/user-integral-index" data-type="1" @tap="navigation_event">
		                    <view v-if="propStatus == 2" class="on">
		                        <image class="topavatar" :src="scorestore_static_url+'mini/score-on.png'" />
		                        <text class="title">我的积分</text>
		                    </view>
		                    <view v-else>
		                        <image class="topavatar" :src="scorestore_static_url+'mini/score.png'" />
		                        <text class="title">我的积分</text>
		                    </view>
		                </view>
		                <view class="weui-flex__item" data-value="/pages/fcc/scorestore/order/order" data-type="1" @tap="navigation_event">
		                    <view v-if="propStatus == 3" class="on">
		                        <image class="topavatar" :src="scorestore_static_url+'mini/order-on.png'" />
		                        <text class="title">兑换订单</text>
		                    </view>
		                    <view v-else>
		                        <image class="topavatar" :src="scorestore_static_url+'mini/order.png'" />
		                        <text class="title">兑换订单</text>
		                    </view>
		                </view>
		            </view>
		        </view>
		    </view>
		</view>
	</view>
</template>

<script>
	const app = getApp();
	var scorestore_static_url = app.globalData.get_static_url('scorestore', true);
	var common_static_url = app.globalData.get_static_url('common');
	export default {
		data() {
			return {
				scorestore_static_url: scorestore_static_url,
				common_static_url: common_static_url
			}
		},
		props: {
		    propStatus: {
				type: [Number,String],
				default: 0
			}
		},
		methods: {
			navigation_event(e) {
			    app.globalData.operation_event(e);
			}
		}
	}
</script>

<style>
@import './common.css';
</style>
